package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbPlacePriceValidatorGroup.*;

import javax.validation.constraints.Size;
import java.lang.Double;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import com.cloudlead.commonData.vo.Region;
import javax.validation.constraints.NotNull;
import java.lang.Integer;
import com.cloudlead.commonData.vo.BaseCompany;
import com.cloudlead.commonData.vo.BaseDock;

/**
 * TbPlacePrice is a Codegen vo type
 */
@Label("TbPlacePrice")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbPlacePrice")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseCompany", rootField="baseCompanyId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseDock", rootField="baseDockId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="basePlace", rootField="basePlaceId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="doo", rootField="door5")
})
public class TbPlacePrice extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13383641695231L;    
    @Label("areaDescription")
    @Size(max=500)
    private String areaDescription;

    @NotNull(groups={Create.class,Update.class})
    @Label("baseCompanyId")
    private BaseCompany baseCompany;

    @NotNull(groups={Create.class,Update.class})
    @Label("港口")
    private BaseDock baseDock;

    @NotNull(groups={Create.class,Update.class})
    @Label("门点")
    private Region basePlace;

    @Label("备注")
    @Size(max=45)
    private String comments;

    @Label("空箱")
    private Double containerNull;

    @Label("箱尺寸")
    @Size(max=24)
    private String containerSize;

    @Label("箱类型")
    @Size(max=24)
    private String containerType;

    @Label("door5")
    private Region doo;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @Label("20GP")
    private Double gp20;

    @Label("20GP")
    private Double gp40;

    @Label("40HC")
    private Double hc40;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("报价")
    private Double price;

    @Label("单据类型")
    private Integer stae;

    @Label("40TK")
    private Double tk40;

    public String getAreaDescription() {
        return areaDescription;
    }

    public void setAreaDescription(String areaDescription) {
        this.areaDescription = areaDescription;
    }

    public BaseCompany getBaseCompany() {
        return baseCompany;
    }

    public void setBaseCompany(BaseCompany baseCompany) {
        this.baseCompany = baseCompany;
    }

    public BaseDock getBaseDock() {
        return baseDock;
    }

    public void setBaseDock(BaseDock baseDock) {
        this.baseDock = baseDock;
    }

    public Region getBasePlace() {
        return basePlace;
    }

    public void setBasePlace(Region basePlace) {
        this.basePlace = basePlace;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Double getContainerNull() {
        return containerNull;
    }

    public void setContainerNull(Double containerNull) {
        this.containerNull = containerNull;
    }

    public String getContainerSize() {
        return containerSize;
    }

    public void setContainerSize(String containerSize) {
        this.containerSize = containerSize;
    }

    public String getContainerType() {
        return containerType;
    }

    public void setContainerType(String containerType) {
        this.containerType = containerType;
    }

    public Region getDoo() {
        return doo;
    }

    public void setDoo(Region doo) {
        this.doo = doo;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public Double getGp20() {
        return gp20;
    }

    public void setGp20(Double gp20) {
        this.gp20 = gp20;
    }

    public Double getGp40() {
        return gp40;
    }

    public void setGp40(Double gp40) {
        this.gp40 = gp40;
    }

    public Double getHc40() {
        return hc40;
    }

    public void setHc40(Double hc40) {
        this.hc40 = hc40;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStae() {
        return stae;
    }

    public void setStae(Integer stae) {
        this.stae = stae;
    }

    public Double getTk40() {
        return tk40;
    }

    public void setTk40(Double tk40) {
        this.tk40 = tk40;
    }

    public String toString() {
         return String.format("TbPlacePrice { areaDescription : %s,baseCompany : %s,baseDock : %s,basePlace : %s,comments : %s,containerNull : %s,containerSize : %s,containerType : %s,doo : %s,flag : %s,gp20 : %s,gp40 : %s,hc40 : %s,id : %s,price : %s,stae : %s,tk40 : %s }",areaDescription,baseCompany,baseDock,basePlace,comments,containerNull,containerSize,containerType,doo,flag,gp20,gp40,hc40,id,price,stae,tk40);
    }

}

